package com.eastedu.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * The type Custom feign header interceptor.
 * @author zhangzhishuai
 */
public class CustomFeignHeaderInterceptor implements RequestInterceptor {

    private static final String HEADER_NAME = "Authorization";
    private static final String HEADER_VALUE = "basic cmVzb3VyY2UtZGF0YS1zeW5j";

    @Override
    public void apply(RequestTemplate template) {
        template.header(HEADER_NAME, HEADER_VALUE);
    }
}